# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.

from odoo import api, fields, models, _


class CompanyTaxMachine(models.Model):
    _name = "fp.company.taxmachine"
    _description = "Company TaxMachine"

    company_id = fields.Many2one(
        'res.company', 'Company', required=True, index=True,
        default=lambda self: self.env.company)

    name = fields.Char(string='Machine Name')
    code = fields.Char(string='Machine Code')

    # def name_get(self):
    #     result = []
    #     for one in self:
    #         name = one.company_id.name + ' ' + one.name
    #         result.append((one.id, name))
    #     return result

    pass
